package user;

public class Student extends User {
    private double score;
    private String class_ = "暂无";
    public static int count;
    private int num;

//    public Student() {
//    }


    public Student(String name, String id, char sex, int age, String password, String phoneNum, double score, String class_, int num) {
        super(name, id, sex, age, password, phoneNum);
        this.score = score;
        this.class_ = class_;
        this.num = num;
    }

    public void setScore(double score) {
        this.score = score;
    }

    public void setClass_(String class_) {
        this.class_ = class_;
    }

    public double getScore() {
        return score;
    }

    public String getClass_() {
        return class_;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    @Override
    public String toString() {
        return getNum() +
                "\t\t"+getName() +
                "\t\t" + getSex() +
                "\t\t" + getAge() +
                "\t\t" + getId() +
                "\t" + getPassword() +
                "\t\t" + getPhoneNum() +
                "\t\t" + class_ +
                "\t\t" + score;
    }

}
